package com.kk.nutzdao.config;

import org.nutz.dao.impl.SimpleDataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class NutzDaoConfig {



    @Bean
    public SimpleDataSource simpleDataSource() {
        SimpleDataSource dataSource = new SimpleDataSource ( );
        dataSource.setJdbcUrl ("jdbc:mysql://127.0.0.1/nutzdemo");
        dataSource.setUsername ("root");
        dataSource.setPassword ("root");
        return dataSource;
    }
}
